package game;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;
public class CreditsState extends JPanel implements WindowComponent {

	
	private static final long serialVersionUID = 1L;
	private JButton backButton;
	public CreditsState()  {
		setLayout(null);
		initialize();
	}
	private void initialize() {

		backButton = new JButton("Back");
		backButton.setBounds(450, 300, 275, 45);
		backButton.setOpaque(false);
		backButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				FRAME.getContentPane().removeAll();
				FRAME.getContentPane().add(MENU_PANEL).setVisible(true);
				CREDITS_PANEL.setVisible(false);
				
			}
		});
		
		add(backButton);
		
	}

}
